package com.ruoyi.factory.staffSafe.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 培训档案人员类型对象 t_staff_type
 * 
 * @author ruoyi
 * @date 2024-04-12
 */
public class StaffType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 员工id */
    @Excel(name = "员工id")
    private String userid;

    /** 员工类型(0-主要负责人,1-安全生产管理人员,2-特种作业人员,3-其他从业人员) */
    @Excel(name = "员工类型(0-主要负责人,1-安全生产管理人员,2-特种作业人员,3-其他从业人员)")
    private String typename;

    /** 类型编码(0-主要负责人,1-安全生产管理人员,2-特种作业人员,3-其他从业人员) */
    @Excel(name = "类型编码",dictType = "staff_type")
    private String typecode;

    /** 状态 */
    @Excel(name = "状态")
    private String dr;

    /** 员工号 */
    @Excel(name = "员工号")
    private String userCode;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setTypename(String typename) 
    {
        this.typename = typename;
    }

    public String getTypename() 
    {
        return typename;
    }
    public void setTypecode(String typecode)
    {
        this.typecode = typecode;
    }

    public String getTypecode()
    {
        return typecode;
    }
    public void setDr(String dr)
    {
        this.dr = dr;
    }

    public String getDr()
    {
        return dr;
    }
    public void setUserCode(String userCode)
    {
        this.userCode = userCode;
    }

    public String getUserCode()
    {
        return userCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userid", getUserid())
            .append("typename", getTypename())
            .append("typecode", getTypecode())
            .append("dr", getDr())
            .append("userCode", getUserCode())
            .toString();
    }
}
